import React, { Component } from 'react';
import { SearchBar } from 'antd-mobile';
import { withRouter } from 'react-router-dom';
import './IndexSearch.less';

class IndexSearch extends Component {

    onSearch = () => {
        this.props.history.push('/team');
    }

    render() {
        return (
            <div onClick={this.onSearch} to='/team' className='index-search'>
                <SearchBar placeholder="搜索合作伙伴" />
            </div>
        );
    }
}


export default withRouter(IndexSearch);